import store from '../store/index'
import { apiGetShopInfo } from '../api/shop'

export default {
  data: {},
  async onLoad(options) {
    // console.log('[mixin]', options)
    // const scene = options.scene
    // if (scene && scene !== '0' && scene !== 0) {
    //   const resp = await apiGetShopInfo(scene)
    //   if (resp && resp.code === 0) {
    //     await store.dispatch('initShopInfo', resp.data)
    //   }
    // }
    // await store.dispatch('initShopInfo')
  },
}
